package Day02;

public class DoubleDemo {
    public static void main(String[] args) {
        double a = 3.14;
        float b = 3.14f;

        //
        double c=3.0, d=2.9;
        System.out.println(c-d);//舍入误差
        double e=6.0, f=4.9;
        System.out.println(e-f);//舍入误差
        double g=6.0, h=1.9;
        System.out.println(g-h);
        float i=3.0f,j=2.9f;
        System.out.println(i-j);//舍入误差
    }
}
